package si.yun.dao;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
import si.yun.entity.SyLoginRecord;
import si.yun.entity.SyUser;

import java.util.List;
@Component
public interface LoginDao {
    SyUser selUser(@Param("userName")String userName, @Param("passWord") String passWord);

    int addUserLog(@Param("userId")long userId,@Param("IP")String IP,@Param("indirizzo")String indirizzo,@Param("state")int state);

    int addUserLog2(@Param("IP")String IP,@Param("indirizzo")String indirizzo,@Param("state")int state);

    int updUser(@Param("userId")int userId,@Param("userName")String userName,@Param("email")String email,@Param("npwd")String npwd);

    List<SyLoginRecord> selUserLog();
}
